home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cpptut22.zip / NEWDATE.H < prev    next >
C/C++ Source or Header  |  1992-01-20  |  392b  |  22 lines

  1.                                      // Chapter 7 - Program 9
  2. // This class inherits the date class and adds one variable and one
  3. //  method to it.
  4.  
  5. #ifndef NEWDATE_H
  6. #define NEWDATE_H
  7.  
  8. #include "date.h"
  9.  
  10. class new_date : public date {
  11. protected:
  12.  
  13.    int day_of_year;             // New member variable
  14.  
  15. public:
  16.  
  17.    int get_day_of_year(void);   // New method
  18.  
  19. };
  20.  
  21. #endif
  22.